// example routes
/*
get "/blog/@year/@month/@day/@title", forward: "/WEB-INF/groovy/blog.groovy?year=@year&month=@month&day=@day&title=@title"
get "/something", redirect: "/blog/2008/10/20/something", cache: 2.hours
get "/book/isbn/@isbn", forward: "/WEB-INF/groovy/book.groovy?isbn=@isbn", validate: { isbn ==~ /\d{9}(\d|X)/ }
*/

// routes for the blobstore service example
get "/upload",  forward: "/upload.gtpl"
get "/success", forward: "/success.gtpl"
get "/failure", forward: "/failure.gtpl"

//get "/getvalue", forward: "/getvalue.groovy"
//get "/storeavalue", forward: "/storevalue.groovy"

post "/getvalue", forward: "/getvalue.groovy"
post "/getvalue/", forward: "/getvalue.groovy"
post "/storeavalue", forward: "/postvalue.groovy"
post "/storeavalue/", forward: "/postvalue.groovy"
get "/storeavalue", forward: "/postvalue.groovy"
get "/storeavalue/", forward: "/postvalue.groovy"

get "/meteo/getvalue", forward: "/getmeteo.groovy",  cache: 2.hours
post "/meteo/getvalue", forward: "/getmeteo.groovy",  cache: 2.hours

get "/meteo/getvalue/", forward: "/getmeteo.groovy",  cache: 2.hours
post "/meteo/getvalue/", forward: "/getmeteo.groovy",  cache: 2.hours

